package org.particlethink.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.particlethink.entry.ObjectionType;
import org.particlethink.model.ObjectionReason;

import java.util.List;

@Mapper
public interface ObjectionReasonMapper extends tk.mybatis.mapper.common.Mapper<ObjectionReason> {

	@Select("select * from objection_reasons where objection_type=#{type.code} and correction_id=#{correctionId}")
	List<ObjectionReason> queryByTypeAndCorrectionId(@Param("type") ObjectionType type, @Param("correctionId") Integer correctionId);
}
